<!DOCTYPE HTML>
<html>
    <meta charset="UTF-8">
    <title><?php echo CHtml::encode($this->pageTitle); ?></title>
    <link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/back-end/bootstrap.css" />
    <link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/back-end/oe-core.css" />
    <link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/back-end/style2.css" />
    <link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/back-end/jquery.ui.css" />
    <link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/back-end/chosen.css" />
    <link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/back-end/fe-suggest.css" />
    <script src="<?php echo Yii::app()->theme->baseUrl; ?>/js/back-end/bootstrap.js"></script>
    <script src="<?php echo Yii::app()->theme->baseUrl; ?>/js/back-end/core.js"></script>
    <!--[if lt IE 9]>
    <script src="<?php echo Yii::app()->theme->baseUrl; ?>/js/back-end/html5.js"></script>
    <link rel="stylesheet" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/back-end/fixIE.css" />
    <![endif]-->
</head>
<body class="joystickable">
    <div class="workspace">
        <div class="be-head">
            <img src="<?php echo Yii::app()->theme->baseUrl; ?>/img/back-end/v2.ui/logo.png" class="logo"/>
            <div class="headtools pull-right">
                Tools
            </div>
            <div class="clear"></div>
        </div>
        
        <?php require_once 'admin-toolbar.php'; ?>
        
        <?php if(isset($this->breadcrumbs)):?>
			<?php $this->widget('zii.widgets.CBreadcrumbs', array(
				'links'=> $this->breadcrumbs ? $this->breadcrumbs : ViewHelper::getBreadcrumb(),
				'homeLink' => CHtml::link('Dashboard', Yii::app()->createUrl('admin')),	
				'tagName' => 'ul',
				'htmlOptions' => array('class' => 'breadcrumb')		
			)); ?><!-- breadcrumbs -->
		<?php endif?>
        
        <div class="desktop container-fluid">
            <div class="desktop-inner mainpage">
                <noscript><div class="alert alert-error" style="font-size:1.5em"><strong style="line-height:32px">Warning!</strong><p>Javascript is <b>currently disabled</b> in your browser. However, this app <b>require javascript</b> to run</p><p><i>Please enable javascript in your browser, then refresh to continue.</i></p><p>Thank you!</p></div></noscript>
                <?php echo $content ?>
            </div>
        </div><!-- /.desktop -->
        <div class="modal hide" id="modal-box"></div>
        <div class="show-presenter show-toast"><i></i></div>
        <div class="show-presenter show-loading"><i></i></div>
        <div class="show-presenter show-processing"><i></i></div>
    </div><!-- /.workspace -->
	<div id="footer" class="footer clearfix"><div class="container-fluid"><div class="footer-inner row-fluid"></div></div></div><!-- /.footer -->
	<script type="text/javascript" src="<?php echo Yii::app()->theme->baseUrl; ?>/js/editor/ckeditor/ckeditor.js"></script>
</body>
</html>